package org.example.hellocontroller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController//写在类上面
public class HelloControllerApplication {
//....
    @RequestMapping("/hello")//写在方法上面
        public String hello(){return "hello123";
        }
    }
